#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from django import forms
from business.models import CustomerModel, CircuitOrderModel, \
    TicketModel, TicketMessageModel


# 增加用户信息表格
class CustomerForm(forms.ModelForm):
    class Meta:
        model = CustomerModel
        exclude = ['creator', 'add_date', 'modifier', 'mod_date']


# 添加订单的表格
class CircuitOrderForm(forms.ModelForm):
    class Meta:
        model = CircuitOrderModel
        exclude = ['creator', 'add_date', 'modifier', 'mod_date', 'customer']


# 添加Ticket单
class TicketForm(forms.ModelForm):
    class Meta:
        model = TicketModel
        exclude = ['creator', 'add_date', 'modifier', 'mod_date', 'order']


# Ticket单处理的message信息
class TicketMessageForm(forms.ModelForm):
    class Meta:
        model = TicketMessageModel
        exclude = ['creator', 'add_date', 'modifier', 'mod_date', 'ticket']
